package cn.qingyun.gis.modules.scenes.controller;

import cn.qingyun.gis.common.Result;
import cn.qingyun.gis.modules.init.system.base.controller.BasicController;
import cn.qingyun.gis.modules.scenes.entity.PoiScenario;
import cn.qingyun.gis.modules.scenes.service.IPoiScenarioService;
import com.baomidou.dynamic.datasource.DynamicRoutingDataSource;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@Api(tags = "测试接口")
@RequestMapping("/test")
@RestController
@Slf4j
@Validated
public class TestController extends BasicController<PoiScenario, IPoiScenarioService> {

    @Resource
    private DynamicRoutingDataSource dataSource;

    @GetMapping("/test")
    public Result<?> poiCountQuery() {
        return Result.ok();
    }
}
